﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using WebLibs;

namespace MDF.DataHelper.DataObject.UsersDO
{
    public class UserGroupDAO : BaseDataObject
    {
        #region Constructor

        public UserGroupDAO()
        {
        }

        public UserGroupDAO(IData _objData)
        {
            this.m_objData = _objData;
        }
        #endregion

        #region Methods

        public DataTable GetAll()
        {
            try
            {
                this.Connect();
                this.m_objData.CreateNewStoredProcedure("[UserGroup_Select]");
                return  this.m_objData.ExecStoreToDataTable();
            }
            catch (Exception ex)
            {
                throw (ex);
            }
            finally
            {
                 this.DeConnect();
            }
        }

        #endregion
    }
}
